package com.jiayuge.springcloud.config;

import com.netflix.loadbalancer.IRule;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 功能: 配置  --层
 * <p>配置  --层</p >
 * <ul>
 * <li>数据库: 增 删 改 查 </li>
 * <li>{@link ConfigBean} connect to {@link ConfigBean}</li>
 * </ul>
 *
 * @Program: SpringCloud
 * @Date: 2021-09-27 16:02
 * @Version 1.0
 * @Author Jiayu.Yang
 */
@Configuration
public class ConfigBean {

    @Bean
//    @LoadBalanced //注册Robbon
    public RestTemplate getRestTemplate(){
        return  new RestTemplate();
    }


}
